﻿using SuperX.Common.Object;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SuperX.WebAppService
{
    public class WebAppConfig : BasicObject
    {
        /// <summary>
        /// 监听地址
        /// </summary>
        private WebAPPAddress listeningAddress;

        public WebAPPAddress ListeningAddress
        {
            get => listeningAddress ?? (listeningAddress = new WebAPPAddress());
            set => listeningAddress = value;
        }
    }

    public class WebAPPAddress
    {
        /// <summary>
        /// 启动ip
        /// </summary>
        public string IP { get; set; }

        /// <summary>
        /// 启动的端口
        /// </summary>
        public int Port { get; set; } = 6666;
    }
}